<?php /* Smarty version Smarty-3.0.7, created on 2014-11-27 15:57:43
         compiled from "E:/project/runtime/development/lab/tryPHP/app_x000/view\paging.jquery.html" */ ?>
<?php /*%%SmartyHeaderCode:124645476d9771442c3-80065526%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c3da89a33e0555df60c825e42c155384acf7349e' => 
    array (
      0 => 'E:/project/runtime/development/lab/tryPHP/app_x000/view\\paging.jquery.html',
      1 => 1417075061,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '124645476d9771442c3-80065526',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<html>
<head>
    <title>Jquery.pager分页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="<?php echo @BUILD_PATH;?>
/public/JEAR/jquery/jquery.js"></script>
    <script type="text/javascript" src="<?php echo @BUILD_PATH;?>
/public/JEAR/jquery/plugins/jquery.pager.js"></script>
    <script type="text/javascript">
    $(function(){
        $.pager({
            data:{
                rowCount:$('#rowCount').val(),
                pageCount:$('#pageCount').val(),
                pageSize:$('#pageSize').val(),
                pagination:$('#pagination').val()
            },
            link:{
                protocol:$('#protocol').val(),
                protocolData:$('#protocol-data').val(),
                parameters:$('#parameters').val()
            },
            button:{
                first:[$('#first'),'link'],
                last:[$('#last'),'link'],
                next:[$('#next'),'link'],
                previous:[$('#previous'),'link'],
                cycle:[$('#cycle'),'link']
            },
            info:{
                rowCount:[$('#info_rowCount'),'25'],
                pagination:[$('#info_pagination'),'1/4']
            },
            other:{
                errorPaniel:$('#error')
            }
        });
    });
    </script>
</head>
<body>
    <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('data')->value['Rows']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?>
        <?php $_smarty_tpl->tpl_vars['id'] = new Smarty_variable($_smarty_tpl->tpl_vars['item']->value['id'], null, null);?>
        <a href='<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperlink(":news::info","id:".($_smarty_tpl->getVariable('id')->value));?>
'><?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
</a><br/>
    <?php }} ?>
    <div class="fanye">
        <input id="error" type="hidden" value=""/>
        <input id="protocol" type="hidden" value="tryPHP_Common" value-other="common/tryPHP_Common/tryPHP_Static"/>
        <input id="protocol-data" type="hidden" value="<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperlink('__SELF__');?>
"/>
        <!--优雅的分隔线-->
        <input id="rowCount" type="hidden" value="<?php echo $_smarty_tpl->getVariable('data')->value['Meta']['RowCount'];?>
">
        <input id="pageSize" type="hidden" value="<?php echo $_smarty_tpl->getVariable('data')->value['Meta']['PageSize'];?>
">
        <input id="pageCount" type="hidden" value="<?php echo $_smarty_tpl->getVariable('data')->value['Meta']['PageCount'];?>
">
        <input id="pagination" type="hidden" value="<?php echo $_smarty_tpl->getVariable('data')->value['Meta']['Pagination'];?>
">
        <input id="parameters" type="hidden" value="<?php echo Route::ArgumentsToString($_smarty_tpl->getVariable('data')->value['UrlParameters']);?>
">
        <!--优雅的分隔线-->
        <a id="first" href="">首页</a>
        <a id="previous" href="">上一页</a>
        <a id="cycle" style="display: none;" href="#">1</a>
        <a id="next" href="">下一页</a>
        <a id="last" href="">尾页</a>
        <span id="info_rowCount">共25条信息</span>
        <span id="info_pagination">1/4</span>
    </div>
</body>
</html>